cc.game.onStart = function () {
    //if (!cc.sys.isNative && document.getElementById("cocosLoading")) //If referenced loading.js, please remove it
     //   document.body.removeChild(document.getElementById("cocosLoading"));

    var designSize = cc.size(480, 320);
    var screenSize = cc.view.getFrameSize();
    //cc.loader.resPath = "";

    //cc.view.setDesignResolutionSize(designSize.width, designSize.height, cc.ResolutionPolicy.SHOW_ALL);

    //load resources
    cc.LoaderScene.preload(g_resources, function () {
        cc.director.runScene(new GameScene());
    }, this);
};
//var myApp = new cocos2dApp(GameScene);
cc.game.run();